import { defineStore } from "pinia";
import * as systemApi from "@/api/system";

export const useSystemStore = defineStore("system", () => {
  async function getConfigList(param?: any) {
    const response = await systemApi.getConfigList(param);
    if (response.code === 20000) {
      return response.data.configs;
    }
    return [];
  }

  return { getConfigList };
});
